// // import "./main.css"
// // import "./sass.scss"
// import logo from "../public/default.png"
// // import "./fonts/iconfont.css"
// // import $ from "jquery"

// const a = 'hello'
// console.log(a)

// const img = new Image()
// img.src = logo

// document.getElementById('imgBox').appendChild(img)

// // @log('hi')
// class Author {
//     name = 'ITEM'
//     age = 18
//     email = 'lxp_work@163.com'

//     info = () => {
//         return {
//             name: this.name,
//             age: this.age,
//             email: this.email
//         }
//     }
// }

// $('.element').html('haha')
console.log('navigator', navigator, 'serviceWorker' in navigator)
if ('serviceWorker' in navigator) {
    window.addEventListener('load',()=>{
        navigator.serviceWorker.register('/service-worker.js').then(registration=>{
            console.log('service-worker registed')
        }).catch(error=>{
            console.log('service-worker register error')
        })
    })
}


// module.exports = Author